package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 教室表
 * </p>
 *
 * @author Rin
 * @since 2020-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ClassRoom对象", description="教室表")
public class ClassRoom implements Serializable {

    /**
     * 所有的教室；
     * key 教室Id
     * value 教室名称
     */
    public static Map<Integer, String> classrooms = new HashMap<>();

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "教室名称")
    @TableField("roomName")
    private String roomname;

    @ApiModelProperty(value = "教室描述")
    @TableField("roomDesc")
    private String roomdesc;

}
